# coding=utf-8
# 习题33：while循环

'''
Created on 2015年6月11日

@author: Doris
'''
i = 0
numbers = []

def add(a , b):
    return a + b

j = int(raw_input("请输入一个整数："))
print j

while(i<j):
    print "At the top i is %d"%i
    numbers.append(i)
    print "Numbers now: %r" %numbers
    i = add(i,1)
    print "At the bootom i is %d"%i
    print "-------------------------"

for a in range(0,j):
    print "At the top i is %d"%a
    numbers.append(a)
    print "Numbers now: %r" %numbers
    print "At the bootom i is %d"%a
    print "******************************"
    


    





